package opensocial.apps.treat.events
{
  import flash.events.Event;

  public class TreatEvent extends Event
  {
//    public static const exitInvitations:String = 'invite';
//    public static const exitInvitations:String = 'invite';
//    public static const exitInvitations:String = 'invite';
//    public static const exitInvitations:String = 'invite';
//    
//    
//    public static const DATA_CHANGE:String = 'dataChange';
    
    public var data:Object;    
    
    public function TreatEvent(type:String, object:Object=NaN, bubbles:Boolean=false, cancelable:Boolean=false)
    {
      super(type, bubbles, cancelable);
      data = object;
    }
    
    override public function clone():Event {
      return new TreatEvent(type, bubbles, cancelable);
    }
    
  }
}